package employee;

import javax.swing.*;
import java.awt.*;

public class AdmiMenuFrm extends JFrame {
    public AdmiMenuFrm(){
        setTitle("企业员工管理系统 - 管理员界面");
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(800,600);
        setLocationRelativeTo(null);
        JLabel welcomeLabel = new JLabel("欢迎您，管理员："+ Register.currentUser.getUsername());

        welcomeLabel.setFont(new Font("微软雅黑",Font.BOLD,18));
        welcomeLabel.setHorizontalAlignment(SwingConstants.CENTER);
        getContentPane().add(welcomeLabel,BorderLayout.NORTH);

        setVisible(true);
    }
}
